package Generics;

/**
 * @author: leiwenkang
 * @date: 2019/5/7
 * @time: 15:54
 */
public class Util {
    public static <K, V> boolean compare(Pair<K, V> p1, Pair<K, V> p2) {
        return p1.getKey().equals(p2.getKey()) &&
                p1.getValue().equals(p2.getValue());
    }

}


